package com.sikaryofficial.backend.domain.mapping;

import com.sikaryofficial.backend.domain.dto.resp.points.GuideTaskDTO;
import com.sikaryofficial.backend.domain.entity.GuideTaskDetail;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author : wuweihong
 * @desc : 指引任务实体映射
 * @date : 2024-12-06
 */

@Mapper
public interface GuideTaskDetailMapping {

	GuideTaskDetailMapping INSTANCE = Mappers.getMapper(GuideTaskDetailMapping.class);

	/**
	 * 实体映射resp
	 * @param guideTaskDetail
	 * @return
	 */
	GuideTaskDTO coverEntityToResp(GuideTaskDetail guideTaskDetail);

	/**
	 * 实体列表映射resp
	 * @param guideTaskDetails
	 * @return
	 */
	List<GuideTaskDTO> coverListToResp(List<GuideTaskDetail> guideTaskDetails);

}
